<?php

class NotificationLine extends NotificationBase{
	
	public function save(){
		DB::query("
			INSERT INTO notifications (from_user_id, from_user_name, to_user_id, to_user_name, title, content)
			VALUES ("
				.DB::esc($this->fromUserId). ",'"
				.DB::esc($this->fromUserName). "',"
				.DB::esc($this->toUserId). ",'"
				.DB::esc($this->toUserName)."',"
				.DB::esc($this->title)."',"
				.DB::esc($this->content)."')");
		
		// Returns the MySQLi object of the DB class
		/*
		return $this->fromUserId. ",'"
				.$this->fromUserName. "',"
				.$this->toUserId. ",'"
				.$this->toUserName."',"
				.$this->title."',"
				.DB::esc($this->content)."')";
        */
		return DB::getMySQLiObject();
	}
}

?>